#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
    int a, b;
    scanf("%d", &a);
    b = (bool)a;
    b = (int)b;
    printf("%d",b);
    return 0;
}